package com.ruoyi.common.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class ChatRequestBo extends BaseEntity {
    /**
     * 问题
     */
    @NotBlank(message = "问题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String question;
    /**
     * openId
     */
    private String openId;
    /**
     * appId
     */
    private String appid;
    /**
     * 用户id
     */
    private long userId;
    /**
     * msgID
     */
    private long msgId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 回答
     */
    private String requestId;
    /**
     *  是否减去次数 0 不减 1 减 ,也可直接用此代表次数
     */
    private int isSubtract;

    private String apiKey;
}
